<template>
  <div class="titles">
    <div class="center">
      <div class="left">
        <div class="top">{{title}}</div>
        <div class="crosLine"></div>
      </div>
      <div class="right">查看更多</div>
    </div>
  </div>
</template>

<script>

export default {
    name: 'titles',
    props: {
      name: {
        type: String,
        required: true
      }
    },
    computed: {
      title() {
        return this.name
      },
    },
    data() {
      return {
      }
    }
  }
</script>
<style scoped lang="scss">
.titles {
  margin: 20px 0;
  .center {
    width: 84%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      width: 160px;
      height: 80px;
      background-image: url("./img/titlebg2x.png");
      background-repeat: no-repeat;
      background-size: cover;
      color: #412F0A;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .top {
        font-weight: bold;
        font-size: 20px;
        text-shadow: 0px 2px 2px rgba(164,131,60,1);
      }
      .crosLine {
        width: 26px;
        height: 2px;
        background: #412F0A;
        margin-top: 10px;
      }
    }
    .right {
      cursor: pointer;
      width: 80px;
      height: 25px;
      background: #B38F46;
      border-radius: 100px;
      color: #fff;
      font-size: 12px;
      line-height: 25px;
      text-align: center;
    }
  }
}
</style>
